// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()
const db = cloud.database()
// 云函数入口函数
exports.main = async (event, context) => {
  let num = 4 //获取数量限制4
  return await db.collection("users").orderBy("score","desc").limit(num).get()
  
}